import { Controller, Get, Post, Body, Patch, Param, Delete } from '@nestjs/common'
import { ApiOperation, ApiProperty, ApiTags } from '@nestjs/swagger'
import { OSSService } from './oss.service'


@Controller()
@ApiTags('文件上传')
export class OSSController {
    constructor(private readonly ossService: OSSService) { }


    // 文件上传
    @Post('/update')
    @ApiOperation({ summary: '上传到OSS' })
    async uplaod() {
        return this.ossService.upload()
    }
}